<?php

namespace app\model;

use think\Model;

class Node extends Model
{
    protected $autoWriteTimestamp = true;

    public function getNodegradeAttr($value)
    {
        $status = [1=>'顶级分类',2=>"二级分类",3=>'三级分类'];
        return $status[$value];
    }
}